Trying to Trick Linear Regression – Estimating Coefficients for Variables in R {https://t.co/dWa4LhVh6Q} #rstats #DataScience
— R-bloggers (@Rbloggers) August 7, 2021
How to actually make a quality scatterplot in R {https://t.co/P73mUiAzlB} #rstats #DataScience
— R-bloggers (@Rbloggers) August 6, 2021
Machine Learning Strategy (Part 1) {https://t.co/a1IYg3ePhw} #rstats #DataScience
— R-bloggers (@Rbloggers) August 5, 2021
Tune xgboost models with early stopping to predict shelter animal status {https://t.co/DNeVb6IjuW} #rstats #DataScience
— R-bloggers (@Rbloggers) August 8, 2021
Code performance in R: Working with large datasets {https://t.co/UNvMoLoIqw} #rstats #DataScience
— R-bloggers (@Rbloggers) August 5, 2021
Fast SQL Server Imports with R {https://t.co/dXRx5pwUL4} #rstats #DataScience
— R-bloggers (@Rbloggers) August 9, 2021
RStudio Cloud: An inclusive solution for learning R {https://t.co/RQ06lfPa4x} #rstats #DataScience
— R-bloggers (@Rbloggers) August 5, 2021
How to Create Pareto Chart in R {https://t.co/WvpAsoVFBB} #rstats #DataScience
— R-bloggers (@Rbloggers) August 9, 2021
Pricing of FX Forward in R and Excel {https://t.co/2al2b4zGrZ} #rstats #DataScience
— R-bloggers (@Rbloggers) August 8, 2021
Using R: plyr to purrr, part 1 {https://t.co/x2GAGhZiGg} #rstats #DataScience
— R-bloggers (@Rbloggers) August 8, 2021
Update Existing Shiny Apps in ShinyProxy {https://t.co/tGOjD5kE40} #rstats #DataScience
— R-bloggers (@Rbloggers) August 5, 2021
`crossvalidation` and random search for calibrating support vector machines {https://t.co/I0CefdVml8} #rstats #DataScience
— R-bloggers (@Rbloggers) August 6, 2021
R is for Research, Python is for Production {https://t.co/NVCRQnvTjW} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
How to organize your analyses with R Studio Projects {https://t.co/yKvlwGSOYa} #rstats #DataScience
— R-bloggers (@Rbloggers) July 21, 2021
FeatureTerminatoR – a package to remove unimportant variables from statistical and machine l {https://t.co/bD8tbLZmUZ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 15, 2021
Soccer Analytics for Beginners: An R Tutorial on EURO 2020 Data – Web Scraping & Radar Plots {https://t.co/wk5XdvxfWU} #rstats #DataScience
— R-bloggers (@Rbloggers) July 20, 2021
ggdist: Make a Raincloud Plot to Visualize Distribution in ggplot2 {https://t.co/Buy86bYiwS} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
ggplot: plot only some of the data {https://t.co/f2OoQUGd0k} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
How to Create a Covariance Matrix in R {https://t.co/AXUGktYu07} #rstats #DataScience
— R-bloggers (@Rbloggers) July 11, 2021
How to perform ANCOVA in R {https://t.co/J4GIrRDJbG} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
June 2021: “Top 40” New CRAN Packages {https://t.co/vfApIFm7HI} #rstats #DataScience
— R-bloggers (@Rbloggers) July 27, 2021
COUNTIF Function in R {https://t.co/I6251dIRMJ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 18, 2021
ggforce: Make a Hull Plot to Visualize Clusters in ggplot2 {https://t.co/K4EfQe86CG} #rstats #DataScience
— R-bloggers (@Rbloggers) July 27, 2021
When k-means clustering fails {https://t.co/yzzkVXRHWw} #rstats #DataScience
— R-bloggers (@Rbloggers) July 16, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```